package com.xyz.study.design_mode.k_composite.mode;

/**
 * 角色：Component 一致性角色
 * 抽象条目类
 * @author XYZ
 * @version 1.0.0
 * @since 2021-01-27 18:56
 */
public abstract class Entry {

    public abstract String getName();
    public abstract int getSize();

    public void add(Entry entry){
        throw new RuntimeException("加入条目失败！");
    }
}
